<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">

	<h:graphicImage value="/imagens/logo.png" styleClass="logo" />

	<div class="menu">
		<h:form>
			<h:outputFormat value="#{msg.welcome}, {0} ">
				<f:param value="#{facesContext.externalContext.userPrincipal.name}"/>
			</h:outputFormat>
			<h:link outcome="Index">#{msg.homeBtn}</h:link>
			<h:link outcome="ConsultaLancamento" rendered="#{request.isUserInRole('consulta')}">#{msg.entry}</h:link>
			<h:link outcome="ConsultaPessoas" rendered="#{request.isUserInRole('consulta')}">#{msg.people}</h:link>
			
			<h:link outcome="NovoLancamento" rendered="#{request.isUserInRole('cadastro')
			and not request.isUserInRole('consulta')}">#{msg.entry}</h:link>
			<h:link outcome="NovaPessoa" rendered="#{request.isUserInRole('cadastro')
			and not request.isUserInRole('consulta')}">#{msg.people}</h:link>
			<h:commandLink value="#{msg.exit}" action="#{segurancaBean.sair}" />
		</h:form>
	</div>

</ui:composition>